package com.train.order.enums.impl;

import com.train.order.enums.Enums;

public enum ConfirmOrderStatusEnums implements Enums {

    INIT("I", "待支付"),
    PENDING("P", "支付中"),
    SUCCESS("S", "支付成功"),
    FAILURE("F", "支付失败"),
    EMPTY("E", "无票"),
    CANCEL("C", "取消支付");

    private final String code;

    private final String message;

    ConfirmOrderStatusEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
